<table>
    <tbody>
        <tr class="prop">
            <td class="name">
                <label for="serialNumber"><g:message code="b2b.department.serialNumber.label" default="Department Number" /></label>
            </td>
            <td class="value ${hasErrors(bean: departmentInstance, field: 'serialNumber', 'errors')}">
                <g:textField name="serialNumber" maxlength="6" value="${departmentInstance?.serialNumber}" />
            </td>
            <td class="name">
                <label for="name"><g:message code="b2b.department.name.label" default="Name" /></label>
            </td>
            <td class="value ${hasErrors(bean: departmentInstance, field: 'name', 'errors')}">
                <g:textField name="name" maxlength="20" value="${departmentInstance?.name}" />
            </td>
        </tr>
        <tr class="prop">
            <td class="name">
                <label for="description"><g:message code="b2b.department.description.label" default="Desc" /></label>
            </td>
            <td class="value ${hasErrors(bean: departmentInstance, field: 'description', 'errors')}">
                <g:textArea name="description" cols="40" rows="5" value="${departmentInstance?.description}" />
            </td>
            <td class="name">
                <label for="isActive"><g:message code="b2b.department.isActive.label" default="Is Active" /></label>
            </td>
            <td class="value ${hasErrors(bean: departmentInstance, field: 'isActive', 'errors')}">
                <g:checkBox name="isActive" value="${departmentInstance?.isActive}" />
            </td>
        </tr>
    </tbody>
</table>
